package com.jk.common.exception;

import com.jk.common.enums.WitmoreErrorCode;
import lombok.Getter;

@Getter
public class WitmoreException extends RuntimeException {

    private final WitmoreErrorCode errorCode;

    public WitmoreException(WitmoreErrorCode errorCode) {
        super(errorCode.getMessage());
        this.errorCode = errorCode;
    }

    public WitmoreException(WitmoreErrorCode errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

}